package com.yanghang.controller;

import com.yanghang.entity.CarType;
import com.yanghang.service.CarTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@RequestMapping("/carType")
@Controller
public class CarTypeController {
    @Autowired
    private CarTypeService cts;
    @RequestMapping("/selectAllType")
    @ResponseBody
    public List<CarType>selectAllType(){
        return cts.selectAllType();
    }
}
